<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>board_list.jsp</title>
<script>
function goBoard(part){
	location.href='index2.jsp?inc_content=./board/list.jsp&part='+part;
} 
</script>
</head>
<body>
<%
String part= null;//게시판의 종류

 if(request.getParameter("part")!=null){
	 part= request.getParameter("part");
	 session.setAttribute("part", part);
	
 }else{
	 if(session.getAttribute("part")==null){
		 part="공지사항";
		 session.setAttribute("part", part);
	 }
	 part=(String)session.getAttribute("part");
	 
 }


%>
<h1>✦Community</h1>
<ul>
<li><a href='#' onclick="goBoard('공지사항')"> 공지사항</a>
<li><a href='#' onclick="goBoard('QnA')"> QnA</a>
<li><a href='#' onclick="goBoard('FQA')"> FQA</a>
<li><a href='#' onclick="goBoard('Board')"> Board</a>
</ul>
</body>
</html>